<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateApppageRectplsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('apppage_rectpls', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('apppage_id')->default(0)->nullable()->unsigned()->comment('页面ID');
            $table->string('area', 100)->comment('区位编号');
            $table->integer('muticolumn_id')->default(0)->nullable()->unsigned()->comment('栏目ID');
            $table->integer('paneltpl_id')->default(0)->unsigned()->comment('模板编号');
            $table->string('name')->nullable()->comment('名称');
            $table->string('title')->nullable()->comment('推荐位标题');
            $table->string('subtitle')->nullable()->comment('推荐位副标题');
            $table->string('param')->nullable()->comment('参数');
            $table->string('description')->nullable()->comment('描述');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('apppage_rectpls');
    }
}
